home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / pbmplus / pgm / Imakefile < prev    next >
Encoding:
Makefile  |  1994-08-02  |  3.5 KB  |  102 lines

  1. /* Imakefile for pgm tools
  2.  *
  3.  * Copyright (C) 1991 Rainer Klute
  4.  *
  5.  * Permission to use, copy, modify, distribute, and sell this software and
  6.  * its documentation for any purpose is hereby granted without fee, provided
  7.  * that the above copyright notice appear in all copies and that both that
  8.  * copyright notice and this permission notice appear in supporting
  9.  * documentation, and that the copyright holder's name not be used in
  10.  * advertising or publicity pertaining to distribution of the software
  11.  * without specific, written prior permission. The copyright holder makes
  12.  * no representations about the suitability of this software for any
  13.  * purpose. It is provided "as is" without express or implied warranty.
  14.  */
  15.  
  16. #define LibPgm libpgm.a
  17. #define DepLibPgm LibPgm
  18. #include <../Pbmplus.tmpl>
  19.  
  20.    CURRENTLIBS = $(LIBPGM) $(LIBPBM)
  21. CURRENTDEPLIBS = $(DEPLIBPGM) $(DEPLIBPBM)
  22.      INCLUDES  = -I.. -I$(PBMDIR)
  23.          MERGE = pgmmerge
  24.  
  25.           MAN1 = fitstopgm.1 fstopgm.1 hipstopgm.1 lispmtopgm.1 pgmbentley.1 \
  26.                  pgmenhance.1 pgmhist.1 pgmnorm.1 pgmoil.1 pgmramp.1 \
  27.                  pgmtofits.1 pgmtofs.1 pgmtolispm.1 pgmtopbm.1 \
  28.          psidtopgm.1 rawtopgm.1 \
  29.          pgmcrater.1 pgmedge.1 pgmtexture.1
  30.           MAN3 = libpgm.3
  31.           MAN5 = pgm.5
  32.  
  33.           SRCS = fitstopgm.c fstopgm.c hipstopgm.c lispmtopgm.c pgmbentley.c \
  34.          pgmenhance.c pgmhist.c pgmnorm.c pgmoil.c pgmramp.c \
  35.          pgmtofits.c pgmtofs.c pgmtolispm.c pgmtopbm.c \
  36.          psidtopgm.c rawtopgm.c \
  37.          pgmcrater.c pgmedge.c pgmtexture.c
  38.  
  39.           OBJS = fitstopgm.o fstopgm.o hipstopgm.o lispmtopgm.o pgmbentley.o \
  40.          pgmenhance.o pgmhist.o pgmnorm.o pgmoil.o pgmramp.o \
  41.          pgmtofits.o pgmtofs.o pgmtolispm.o pgmtopbm.o \
  42.          psidtopgm.o rawtopgm.o \
  43.          pgmcrater.o pgmedge.o pgmtexture.o
  44.  
  45.           BINS = fitstopgm fstopgm hipstopgm lispmtopgm pgmbentley \
  46.          pgmenhance pgmhist pgmnorm pgmoil pgmramp \
  47.          pgmtofits pgmtofs pgmtolispm pgmtopbm \
  48.          psidtopgm rawtopgm \
  49.          pgmcrater pgmedge pgmtexture
  50.  
  51. AllTarget($(LIBPGM) $(BINS))
  52.  
  53. DependTarget()
  54.  
  55. NormalPbmplusProgramTarget(fitstopgm)
  56. NormalPbmplusProgramTarget(fstopgm)
  57. NormalPbmplusProgramTarget(hipstopgm)
  58. NormalPbmplusProgramTarget(lispmtopgm)
  59. NormalPbmplusProgramTarget(pgmbentley)
  60. NormalPbmplusProgramTarget(pgmenhance)
  61. NormalPbmplusProgramTarget(pgmhist)
  62. NormalPbmplusProgramTarget(pgmnorm)
  63. NormalPbmplusProgramTarget(pgmoil)
  64. NormalPbmplusProgramTarget(pgmramp)
  65. NormalPbmplusProgramTarget(pgmtofits)
  66. NormalPbmplusProgramTarget(pgmtofs)
  67. NormalPbmplusProgramTarget(pgmtolispm)
  68. NormalPbmplusProgramTarget(pgmtopbm)
  69. NormalPbmplusProgramTarget(psidtopgm)
  70. NormalPbmplusProgramTarget(rawtopgm)
  71. NormalPbmplusMathProgramTarget(pgmcrater)
  72. NormalPbmplusMathProgramTarget(pgmedge)
  73. NormalPbmplusMathProgramTarget(pgmtexture)
  74.  
  75. NormalLibraryObjectRule()
  76. NormalLibraryTarget(pgm,libpgm1.o libpgm2.o)
  77.  
  78. #if InstallMerged
  79. NormalProgramTarget($(MERGE),$(MERGE).o $(OBJS),$(CURRENTDEPLIBS),$(CURRENTLIBS),-lm)
  80. #if InstallBinaries
  81. InstallProgram($(MERGE),$(PBMPLUSDIR)$(PBMPLUSBINDIR))
  82. #endif
  83. #endif
  84.  
  85. #if InstallBinaries
  86. InstallPbmplusPrograms($(BINS),$(PBMPLUSDIR)$(PBMPLUSBINDIR),$(INSTPGMFLAGS))
  87. #endif
  88.  
  89. #if InstallManuals
  90. InstallMultipleMan($(MAN1),$(PBMPLUSDIR)$(PBMPLUSMANDIR)/man1)
  91. InstallMultipleMan($(MAN3),$(PBMPLUSDIR)$(PBMPLUSMANDIR)/man3)
  92. InstallMultipleMan($(MAN5),$(PBMPLUSDIR)$(PBMPLUSMANDIR)/man5)
  93. #endif
  94.  
  95. #if InstallLibraries
  96. InstallLibrary(pgm,$(PBMPLUSDIR)$(PBMPLUSLIBDIR))
  97. #endif
  98.  
  99. #if InstallIncludes
  100. InstallMultipleFlags(pgm.h,$(PBMPLUSDIR)$(PBMPLUSINCDIR),$(INSTINCFLAGS))
  101. #endif
  102.